Week 14: Final Exam Practice

 

This week's online activity is an online quiz to help you prepare for the Final Exam.

Question 1
Which of the following is not true about Java EE Annotations?
	They replace descriptors for most purposes
	They remove the need for marker interfaces in at least some cases
	They allow application settings to be visible in the source of the component they affect
	They are all defined in the Java Specifications (it is not possible to create custom annotations) (correct)
	
Question 2
What aspects of an Enterprise Application do Java EE containers facilitate for the Java developer in ways that Java RMI does not?
	All of these answers (correct)
	Remote connectivity
	Security and access to resources
	Transaction Management
	Java Naming and Directory Interface (JNDI) lookup services

Question 3
What is an advantage of web components versus applets?
	None of these answers
	No Java Plugin is required
	Applets involve some security implications that web components do not
	There is better separation of design of look and feel versus implementation
	All of these answers (correct)

Question 4
Which of the following is not a Java EE container type?	
	Web container
	Application client container 
	Enterprise JavaBeans (EJB) container
	Managed Bean container (correct)

Question 5
In the contact management AddressBook application we studied in this course, which of the following implements a Named or Managed Bean?
	ContactController.java (correct)
	Contact.java
	AbstractFacade.java
	index.xhtml
	ContactFacade.java

Question 6	
The database component of the Glassfish Application Server implementation of Java EE is called	
	Oracle
	SQL
	SQL Server
	Derby (correct)
	
Question 7
What is a JavaBeans component?	
	A Java object that adheres to naming conventions for methods that access properties (correct)
	A Java EE component that resides between the persistence layer and the JVM
	A Java EE component for implementing business rules
	A Java component for implementing applets

Question 8
Which of the following is true about Java EE components?	
	The lifecycle of components is handled completely by developer Java code, providing flexibilty at deployment time
	Future versions will be automatically checked for compliance with the Java EE specification (current versions are not)
	They are assembled with related classes and files into Java EE applications (correct)
	They are self-contained and cannot communicate with other components, enhancing security

Question 9
In the contact management AddressBook application we studied in this course, how are the Java Server Faces pages connected to the named or Managed Bean? 	
	None of these answers
	Expression Language (EL) expressions (correct)
	Through a Servlet
	JavaBeans expressions
	Java Server Pages code

Question 10
In a Java EE application that involves a JavaServer Faces web component, the web pages will typically interact with a ________________________, through the Expression Language facility.
	Persistence Bean
	Message-driven Bean
	Managed Bean or Named Bean (correct)
	Session Bean

Question 11
What is the most likely reason a developer might choose to implement an application client rather than a web client?
	The application requires a richer user interface than can be provided with a markup language (correct)
	HTTP is not available
	Application clients are more secure
	The Java Plugin for the browser might be turned off
	Efficiency reasons

Question 12
In the contact management AddressBook application we studied in this course, which file implements the interface to the database?
	Contact.java
	ContactController.java
	create.xhtml
	ContactFacade.java (correct)
	index.xhtml

Question 13	
Which of the following is not a Security-related annotation in Java EE?	
	@ServletConstraint (correct)
	@RolesAllowed
	@DeclareRoles
	@HTTPConstraint

Question 14	
Which of the following is true of Java EE containers?	
	Containers form the interface between the component and the low-level platform specific functionality
	Each web, enterprise bean, or application client component must be assembled into a Java EE module and deployed in its container
	The Java EE server provides underlying services in the form of a container for every component type
	All of these answers (correct)
	None of these answers